package de.puc.defencetower.view.tui.panel;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JPanel;

import de.puc.defencetower.controller.iGameControllerActionListener;

@SuppressWarnings("serial")
public class SpawnPanel extends JPanel {

	public SpawnPanel(final iGameControllerActionListener controler) {


		JButton buildButton = new JButton("Spawn next Wave");

		buildButton.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent e) {
				controler.spwanNextWave();

			}
		});

		add(buildButton);
	}

}
